import pkg from 'sequelize'
import { initModels } from './model/init-models'
const { Sequelize } = pkg

const seq = new Sequelize({
    host: '127.0.0.1',
    port: 3306,
    dialect: 'mysql',
    database: 'redbook_v1',
    username: 'root',
    password: ''
})

export const DB = initModels(seq)